#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int n;
	double S;
	scanf("%d", &n);

	S = 1 - 1.0 / (n + 1);

	printf("%.5lf", S);
	return 0;
}